From c4e39a47fee21083a4fac85f001c2aeae5f1c078 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 24 Nov 2009 00:56:56 +0000 Subject: [PATCH] Removed instrumentation from babl_process. This is part of the inner babl processing and should be as slim as posisble. --- babl/babl-fish-path.c | 1 - babl/babl-fish-stats.c | 3 --- babl/babl-internal.c | 12 +----------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 756e673..10ce65d 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -264,7 +264,6 @@ babl_fish_path (const Babl *source, babl->fish.destination = destination; babl->fish.processings = 0; babl->fish.pixels = 0; - babl->fish.usecs = 0; babl->fish.error = BABL_MAX_COST_VALUE; babl->fish_path.cost = BABL_MAX_COST_VALUE; babl->fish_path.loss = BABL_MAX_COST_VALUE; diff --git a/babl/babl-fish-stats.c b/babl/babl-fish-stats.c index cb83b0e..7b853b1 100644 --- a/babl/babl-fish-stats.c +++ b/babl/babl-fish-stats.c @@ -60,7 +60,6 @@ table_destination_each (Babl *babl, fprintf (output_file, "

path %s to %s

", source->instance.name, destination->instance.name); if (fish->fish.processings > 0) { - fprintf (output_file, "usecs:%li
", fish->fish.usecs); fprintf (output_file, "Processings:%i
", fish->fish.processings); fprintf (output_file, "Pixels:%li
", fish->fish.pixels); } @@ -102,7 +101,6 @@ table_destination_each (Babl *babl, if (fish->fish.processings > 0) { - fprintf (output_file, "usecs:%li
", fish->fish.usecs); fprintf (output_file, "Processings:%i
", fish->fish.processings); fprintf (output_file, "Pixels:%li
", fish->fish.pixels); } @@ -123,7 +121,6 @@ table_destination_each (Babl *babl, if (fish->fish.processings > 0) { - fprintf (output_file, "usecs:%li
", fish->fish.usecs); fprintf (output_file, "Processings:%i
", fish->fish.processings); fprintf (output_file, "Pixels:%li
", fish->fish.pixels); } diff --git a/babl/babl-internal.c b/babl/babl-internal.c index 7155bcf..eac0a95 100644 --- a/babl/babl-internal.c +++ b/babl/babl-internal.c @@ -75,8 +75,6 @@ babl_die (void) exit (-1); } -long babl_total_usecs = 0; - long babl_process (Babl *babl, void *source, @@ -102,18 +100,9 @@ babl_process (Babl *babl, babl->class_type == BABL_FISH_SIMPLE) { long ret; - /* long ticks = babl_ticks (); */ ret = babl_fish_process (babl, source, destination, n); - - /* XX: - ticks -= babl_ticks (); - ticks *= -1L; - - babl_total_usecs += ticks; - babl->fish.usecs += ticks; babl->fish.processings++; babl->fish.pixels += ret; - */ return ret; } @@ -134,6 +123,7 @@ babl_internal_init (void) babl_format_mutex = babl_mutex_new (); #if BABL_DEBUG_MEM babl_debug_mutex = babl_mutex_new (); + fprintf (stderr, "%p %p\n", babl_debug_mutex, babl_format_mutex); #endif } -- 2.30.2